<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>154.CSS 毛玻璃特效</title>
  <link href="./style.css" rel="stylesheet">
</head>
<body>
  <section>
    <h2>Frosted Glass</h2>
    <div class="glass"></div>
  </section>

  <script>
    document.addEventListener('mousemove', function (e) {
      const glass = document.querySelector('.glass')
      glass.style.left = e.offsetX + 'px'
      glass.style.top = e.offsetY + 'px'
    })
  </script>
</body>
</html>